package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysPjBaseMapper;
import com.ruoyi.system.domain.SysPjBase;
import com.ruoyi.system.service.ISysPjBaseService;

/**
 * 磐基运维任务跟踪基础信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-10
 */
@Service
public class SysPjBaseServiceImpl implements ISysPjBaseService 
{
    @Autowired
    private SysPjBaseMapper sysPjBaseMapper;

    /**
     * 查询磐基运维任务跟踪基础信息
     * 
     * @param id 磐基运维任务跟踪基础信息主键
     * @return 磐基运维任务跟踪基础信息
     */
    @Override
    public SysPjBase selectSysPjBaseById(Long id)
    {
        return sysPjBaseMapper.selectSysPjBaseById(id);
    }

    /**
     * 查询磐基运维任务跟踪基础信息列表
     * 
     * @param sysPjBase 磐基运维任务跟踪基础信息
     * @return 磐基运维任务跟踪基础信息
     */
    @Override
    public List<SysPjBase> selectSysPjBaseList(SysPjBase sysPjBase)
    {
        return sysPjBaseMapper.selectSysPjBaseList(sysPjBase);
    }

    /**
     * 新增磐基运维任务跟踪基础信息
     * 
     * @param sysPjBase 磐基运维任务跟踪基础信息
     * @return 结果
     */
    @Override
    public int insertSysPjBase(SysPjBase sysPjBase)
    {
        sysPjBase.setCreateTime(DateUtils.getNowDate());
        return sysPjBaseMapper.insertSysPjBase(sysPjBase);
    }

    /**
     * 修改磐基运维任务跟踪基础信息
     * 
     * @param sysPjBase 磐基运维任务跟踪基础信息
     * @return 结果
     */
    @Override
    public int updateSysPjBase(SysPjBase sysPjBase)
    {
        sysPjBase.setUpdateTime(DateUtils.getNowDate());
        return sysPjBaseMapper.updateSysPjBase(sysPjBase);
    }

    /**
     * 批量删除磐基运维任务跟踪基础信息
     * 
     * @param ids 需要删除的磐基运维任务跟踪基础信息主键
     * @return 结果
     */
    @Override
    public int deleteSysPjBaseByIds(Long[] ids)
    {
        return sysPjBaseMapper.deleteSysPjBaseByIds(ids);
    }

    /**
     * 删除磐基运维任务跟踪基础信息信息
     * 
     * @param id 磐基运维任务跟踪基础信息主键
     * @return 结果
     */
    @Override
    public int deleteSysPjBaseById(Long id)
    {
        return sysPjBaseMapper.deleteSysPjBaseById(id);
    }
}
